package com.bops.service;

import java.util.List;

import com.bops.dal.product.dao.SupplierDAO;
import com.bops.dal.product.dataobject.SupplierDO;
import com.bops.dal.product.queryobject.SupplierQuery;

public class SupplierService {

	private SupplierDAO supplierDAO;

	public Integer checkSupplier(SupplierDO supplierDO){
		return supplierDAO.checkSupplier(supplierDO);
	}
	
	 public Integer insert(SupplierDO supplierDO){
		 return supplierDAO.insert(supplierDO);
	 }

	 public boolean update(SupplierDO supplierDO){
		 return supplierDAO.update(supplierDO);
	 }


	 public  SupplierDO getById(Integer id){
		   return supplierDAO.getById(id);
	 }

	 public List<SupplierDO> listSupplier(SupplierQuery query){
    	return supplierDAO.listSupplier(query);
	 }

	 public boolean delete(Integer id){
    	return supplierDAO.delete(id);
	 }
	
	public void setSupplierDAO(SupplierDAO supplierDAO) {
		this.supplierDAO = supplierDAO;
	}
}
